From 98934cd0b8ef3a2ceed6eae733d397b2920c9db5 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Fri, 20 Jul 2012 12:46:25 -0500 Subject: [PATCH] Fix FTBS on ia64 with -O1. Remove redundant LDFLAGS+=-g and CFLAGS+=-O2. See also: #582439. Closes: #679986 --- debian/rules | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 83563750707..0ecb4c320fa 100755 --- a/debian/rules +++ b/debian/rules @@ -105,10 +105,12 @@ CFLAGS += -Wall LDFLAGS = `dpkg-buildflags --get LDFLAGS` CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` -LDFLAGS += -g - ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O2 + ifneq (,$(filter $(DEB_HOST_ARCH),ia64)) + # Fix a problem with newer versions of gcc on ia64. + # See bugs #582439 and #679986. + CFLAGS += -O1 + endif # eq ia64 endif joblimit := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) -- 2.30.2